package com.hunan.api.catv.service.impl.attention;

import com.hunan.api.catv.dao.BaseDao;
import com.hunan.api.catv.dao.attention.MemberAttentionRecordMapper;
import com.hunan.api.catv.entity.dto.MemberAttentionDto;
import com.hunan.api.catv.entity.po.MemberAttentionRecord;
import com.hunan.api.catv.entity.vo.MemberAttentionRecordVo;
import com.hunan.api.catv.service.impl.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: wangchao
 * @Date: 2020/12/1 9:20
 */
@Service
public class AttentionRecordService extends CommonService<MemberAttentionRecord, MemberAttentionRecordVo, Integer> {

    @Autowired
    private MemberAttentionRecordMapper memberAttentionRecordMapper;

    @Override
    public BaseDao<MemberAttentionRecord, MemberAttentionRecordVo, Integer> getBaseDao() {
        return memberAttentionRecordMapper;
    }

    public List<MemberAttentionDto> getNewsListByMemberId(Integer memberId) {
        return memberAttentionRecordMapper.getNewsListByMemberId(memberId);
    }
}
